// import request from '@/utils/request'
import request from '@/libs/request'

// 登录
export function login_get(data) {
  return request.get(`user/loginInfo`,data)
}

// 登录
export function login(data) {
  return request.post(`user/login`,data)
}
// 获取验证码
export function get_captcha() {
  return request.get(`user/getCaptcha`)
}
// 登出
export function logout() {
  return request.get(`user/logout`)
}
// 获取用户信息
export function getInfo() {
  return request.get(`user/info`)
}
export function setShop(data) {
  return request.post(`user/shop`,data)
}
export function getApi(data) {
  return request.get(`user/apiget`,data)
}
export function setApi(data) {
  return request.post(`user/apiset`,data)
}
export function setInfo(data) {
  return request.post(`user/info`,data)
}
export function resetPwd(data) {
  return request.post(`user/resetPwd`,data)
}

//获取权限
export function getAuthMenu(){
  return request.get(`user/menulist`)
}
//首页统计
export function stj(){
  return request.get(`user/stj`)
}

//消息弹出
export function msgList(){
  return request.post(`msg/index`)
}
// 消息阅读
export function msgRead(data){
  return request.post(`msg/read`,data)
}
// 消息列表
export function msgIndex(){
  return request.post(`msg/list`)
}


